<script setup lang="ts">
import emitter from './modules/emitter.ts'
//@ts-ignore
import LteLoadingPage from "./layout/components/LteLoading2.vue";
import { onUnmounted, ref } from 'vue'
import { RouterView } from 'vue-router';

const loading = ref(true)

emitter.on('loading', (b) => {
    loading.value = b as boolean
})

onUnmounted(() => {
    emitter.off('loading');
})

</script>

<template>
    <RouterView />
    <LteLoadingPage :show="loading"/>
</template>

<style scoped></style>
